﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EnHeader.ascx.cs" Inherits="SBACN.WebSite.UC.EnHeader" %>
<script type="text/javascript">
	function DoSearch() {
		var searchPage = "/EnSearch.aspx";
		var keyword = $jqy.trim(document.getElementById("keywords").value);
		if (keyword.length > 0 && keyword != "Please enter keyword") {
			if (searchPage.indexOf("?") > 1) {
				window.open(searchPage + "&q=" + escape(keyword));
			}
			else {
				window.open(searchPage + "?q=" + escape(keyword));
			}
		}
	}
	function DoLogout() {
		document.getElementById("<%= btn_Logout.ClientID%>").click();
	}
	function Search(sender) {
		if ($jqy.trim(sender.value) == "Please enter keyword") {
			sender.value = "";
		}
	}
	function SearchBlur(sender) {
		if ($jqy.trim(sender.value) == "") {
			sender.value = "Please enter keyword";
		}
	}
</script>
<div id="header">
	<div class="logo">
		<img src="/enimages/logo.png" width="288" height="52" /></div>
	<div id="headerright">
		<div id="headlink">
			<a href="/En/ComDetail.aspx?st=00100001&nc=1" target="_blank">Contact Us</a>&nbsp;|&nbsp;<a href="/En/EnWebMap.aspx?st=00100003"
				target="_blank">Site Map</a>&nbsp;|&nbsp;<a href="/Index.aspx">中文版</a></div>
		<div id="search">
			<label class="textbox-l">
			</label>
			<label class="textbox">
				<input name="keywords" type="text" onclick="return Search(this);" onblur="return SearchBlur(this);" id="keywords" value="Please enter keyword" maxlength="50">
			</label>
			<label class="textbox-r" onclick="return DoSearch();" style="cursor: pointer;">
			</label>
		</div>
	</div>
</div>
<div style="display: none;">
	<asp:Button Text="" runat="server" ID="btn_Logout" OnClick="btn_Logout_Click" />
</div>
<!--菜单开始-->
<div id="nv" runat="server" clientidmode="Static">
</div>
<!--菜单结束-->
